import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";


type homeResult = {
  page: any;
  result: any
};

/** 分页查询仿真文件信息 */
export const sjcyzcrjselfzwjpage = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/sjcyzcrj/selfzwjpage"), { data });
};


/** 封装仿真文件详情 */
export const sjcyzcrjselfzwjbyid = (id) => {
  return http.request<homeResult>("get", baseUrlApi(`/api/backend/sjcyzcrj/selfzwjbyid/${id}`));
};


/** 修改封装仿真文件基础信息 */
export const sjcyzcrjupdatefzwj = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/sjcyzcrj/updatefzwj"), { data });
};

/** 删除封装仿真文件分类信息 */
export const sjcyzcrjdelproductfzwj = (userid?: string | number) => {
  return http.request<homeResult>("get", baseUrlApi(`/api/backend/sjcyzcrj/delproductfzwj/${userid}`));
};


/** 新增仿真文件信息 */
export const sjcyzcrjinsertfzwj = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/sjcyzcrj/insertfzwj"), { data });
};